const CracoLessPlugin = require('craco-less')
const path = require('path');

module.exports = {
	webpack: {
		alias: {
			'@': path.resolve('src'),
			// 此处是一个示例，实际可根据各自需求配置
			'@jihe': path.resolve('src/jihe'),
		},
	},
	plugins: [
		{
			plugin: CracoLessPlugin,
			options: {
				lessLoaderOptions: {
					lessOptions: {
						modifyVars: { '@primary-color': '#1DA57A' },
						javascriptEnabled: true,
					},
				},
			},
		},
	],
}
